﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="shiti.aspx.cs" Inherits="Exam_shiti" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">  
    <table style="background-image: url(../igm/后台登录页面.jpg); width: 800px; height: 533px" class="font33">
        <tr>
            <td align="left" style="width: 460px; height: 8px; background-color: #80ba21; text-align: left; color: white;">
                查询/修改试题<a name="添加题套"></a></td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 41px; text-align: left">
            <table width="550" class="font33">
                    <tbody>
                        <tr>
                            <td style="width: 2078px; height: 21px">
                                <asp:Label ID="lblchaxunconj" runat="server" Text="查询条件"></asp:Label></td>
                            <td style="width: 120px; height: 21px">
                                <asp:DropDownList ID="ddlType1" runat="server" Width="107px">
                                    <asp:ListItem Value="que_subject">考试题目</asp:ListItem>
                                    <asp:ListItem Value="que_type">考题类型</asp:ListItem>
                                    <asp:ListItem Value="Expr1">所属套题</asp:ListItem>
                                </asp:DropDownList></td>
                            <td style="width: 1080px; height: 21px">
                                <asp:Label ID="lblchaxunconj2" runat="server"  Text="关键字"></asp:Label></td>
                            <td style="width: 260px; height: 21px">
                                <asp:TextBox ID="txtSelect" runat="server"  Width="100px"></asp:TextBox></td>
                            <td style="width: 279px; height: 21px">
                                <asp:Button ID="btnSelect" runat="server"  OnClick="btnSelect_Click"
                                    Text="查询/修改" Width="86px" /></td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 16px; text-align: left">
                <strong>添加题套</strong></td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 41px; text-align: left">
                &nbsp;&nbsp;<strong>
                </strong>&nbsp;
                <table style="width: 774px">
                    <tr>
                        <td style="width: 38px">
                <asp:Label ID="Label3" runat="server" Width="64px">课程编号</asp:Label></td>
                        <td style="width: 5px">
                <asp:TextBox ID="txtid" runat="server" Enabled="False" Font-Bold="True" 
                    Width="50px" ReadOnly="True"></asp:TextBox></td>
                        <td style="width: 54px; text-align: right">
                <asp:Label ID="Label11" runat="server" Font-Bold="True" Text="课程名称" Width="69px"></asp:Label></td>
                        <td style="width: 75px">
                <asp:TextBox ID="txtname" runat="server" Enabled="False" Font-Bold="True" Width="194px" ReadOnly="True"></asp:TextBox></td>
                        <td style="width: 100px; text-align: right">
                        </td>
                        <td style="width: 74px">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 38px">
                            <asp:Label ID="Label17" runat="server" Text="考试时间" Width="71px"></asp:Label></td>
                        <td style="width: 5px">
                            <asp:TextBox ID="txtshijian" runat="server" Width="50px"></asp:TextBox></td>
                        <td style="width: 54px; text-align: right">
                            <asp:Label ID="Label18" runat="server" Text="套题名称" Width="66px"></asp:Label></td>
                        <td style="width: 75px">
                                        <asp:TextBox ID="txtQueName" runat="server"  Width="195px"></asp:TextBox></td>
                        <td style="width: 100px; text-align: right">
                                        <asp:Button ID="btnAddtaoti" runat="server" OnClick="Button1_Click"
                                            Text="添加套题" />&nbsp;</td>
                        <td style="width: 74px">
                </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 8px; background-color:#D9EDB2; text-align: left; color: white;">
                <a name="添加试题"><strong>添加试题</strong></a></td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 41px; text-align: left">
                <asp:Label ID="Label10" runat="server" Font-Bold="True" Text="选择题套"></asp:Label>
				<asp:DropDownList ID="Ddltaoti" runat="server" AutoPostBack="True" DataSourceID="SDStaoti"
                    DataTextField="Name" DataValueField="ID" Width="204px">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 229px; text-align: center">
                <table style="width: 680px">
                    <tr>
                        <td style="width: 349px">
                            <table>
                                <tr>
                                    <td style="width: 66px">
                                        <asp:Label ID="Label1" runat="server" Text="考试题目：" Width="75px"></asp:Label></td>
                                    <td align="left" style="width: 263px">
                                        <asp:TextBox ID="txtExamTitle" runat="server"  Width="243px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 66px">
                                        <asp:Label ID="Label2" runat="server" Text="题目类型：" Width="75px"></asp:Label></td>
                                    <td style="width: 263px; text-align: left;">
                                        <asp:DropDownList ID="ddlType" runat="server" AutoPostBack="True" Font-Size="9pt"
                                            Width="190px">
                                            <asp:ListItem>单选题</asp:ListItem>
                                            <asp:ListItem>多选题</asp:ListItem>
                                            <asp:ListItem>问答题</asp:ListItem>
                                        </asp:DropDownList></td>
                                </tr>
                                <tr>
                                    <td style="width: 66px; height: 25px">
                                        <asp:Label ID="Label4" runat="server"  Text="选  项A："></asp:Label></td>
                                    <td style="width: 263px; height: 25px; text-align: left;">
                                        <asp:TextBox ID="txtExamA" runat="server"  Width="188px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 66px">
                                        <asp:Label ID="Label5" runat="server"  Text="选 项B："></asp:Label></td>
                                    <td style="width: 263px; text-align: left;">
                                        <asp:TextBox ID="txtExamB" runat="server"  Width="188px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 66px">
                                        <asp:Label ID="Label6" runat="server"  Text="选 项C："></asp:Label></td>
                                    <td style="width: 263px; text-align: left;">
                                        <asp:TextBox ID="txtExamC" runat="server"  Width="188px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 66px; height: 26px">
                                        <asp:Label ID="Label7" runat="server"  Text="选 项D："></asp:Label></td>
                                    <td style="width: 263px; height: 26px; text-align: left;">
                                        <asp:TextBox ID="txtExamD" runat="server"  Width="188px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 66px; height: 22px">
                                        <asp:Label ID="Label8" runat="server" Text="正确答案：" Width="75px"></asp:Label></td>
                                    <td align="left" colspan="1" rowspan="1" style="width: 263px; height: 22px">
                                        <asp:Panel ID="Panel1" runat="server" Height="20px" Width="125px">
                                            <asp:DropDownList ID="ddlAnswer" runat="server"  Width="64px">
                                                <asp:ListItem>A</asp:ListItem>
                                                <asp:ListItem>B</asp:ListItem>
                                                <asp:ListItem>C</asp:ListItem>
                                                <asp:ListItem>D</asp:ListItem>
                                            </asp:DropDownList></asp:Panel>
                                        <asp:Panel ID="Panel2" runat="server" Height="20px" Width="125px">
                                            <asp:CheckBoxList ID="cblAnswer" runat="server" RepeatDirection="Horizontal">
                                                <asp:ListItem>A</asp:ListItem>
                                                <asp:ListItem>B</asp:ListItem>
                                                <asp:ListItem>C</asp:ListItem>
                                                <asp:ListItem>D</asp:ListItem>
                                            </asp:CheckBoxList></asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 66px; height: 26px">
                                        <asp:Label ID="Label12" runat="server" Text="分数："></asp:Label></td>
                                    <td style="width: 263px; height: 26px; text-align: left">
                                        <asp:TextBox ID="txtscore" runat="server" Width="31px"></asp:TextBox>
                                        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtscore"
                                            ErrorMessage="分数必须是1-100之间整数" MaximumValue="100" MinimumValue="1" Type="Integer"
                                            Width="152px"></asp:RangeValidator></td>
                                </tr>
                                <tr>
                                    <td style="width: 66px; height: 26px">
                                        <asp:Label ID="Label9" runat="server" Text="注 释："></asp:Label></td>
                                    <td style="width: 263px; height: 26px; text-align: left;">
                                        <asp:TextBox ID="txtInstruction" runat="server" Width="240px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 66px">
                                    </td>
                                    <td style="width: 263px">
                                        <asp:Button ID="btnAdd" runat="server"  OnClick="btnAdd_Click" Text="增加" />
                                        <asp:Button ID="btnClear" runat="server"  OnClick="Button2_Click"
                                            Text="重置" /></td>
                                </tr>
                            </table>
                        </td>
                        <td style="width: 302px">
                            &nbsp;<table>
                                <tr>
                                    <td style="width: 100px; text-align: center">
                                        <asp:Label ID="Label14" runat="server" Text="单选题分数"></asp:Label></td>
                                    <td style="width: 146px">
                                        <asp:TextBox ID="txtSingleScore" runat="server"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 100px; text-align: center;">
                                        <asp:Label ID="Label15" runat="server" Text="多选题分数"></asp:Label></td>
                                    <td style="width: 146px">
                                        <asp:TextBox ID="txtMultyScore" runat="server"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 100px; text-align: center">
                                        <asp:Label ID="Label16" runat="server" Text="问答题分数"></asp:Label></td>
                                    <td style="width: 146px">
                                        <asp:TextBox ID="txtQAScore" runat="server"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 100px; text-align: center">
                                        <asp:Label ID="Label13" runat="server" Text="总分"></asp:Label></td>
                                    <td style="width: 146px">
                                        <asp:TextBox ID="txtTotalScore" runat="server"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 100px">
                                        <asp:Button ID="cmdTotal" runat="server" OnClick="cmdTotal_Click" Text="统计当前出题分数"
                                            Width="131px" /></td>
                                    <td style="width: 146px">
                                        <asp:Button ID="cmdclearscore" runat="server" OnClick="cmdclearscore_Click" Text="清空"
                                            Width="58px" /></td>
                                </tr>
                                <tr>
                                    <td style="width: 100px">
                                    </td>
                                    <td style="width: 146px">&nbsp;
                                        </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 7px; background-color:#D9EDB2; text-align: left; color: white; font-variant: normal;">
                <strong>&nbsp;<a name="试题查询/修改_">试题查询/修改</a></strong></td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 31px; text-align: center">
                
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 152px; text-align: center"><span class="font3">&nbsp;</span></td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 41px; text-align: center">&nbsp;
                </td>
        </tr>
        <tr>
            <td align="left" style="width: 460px; height: 41px; text-align: center">
                <asp:SqlDataSource ID="SDStaoti" runat="server" ConnectionString="<%$ ConnectionStrings:gConnectionString %>"
                    SelectCommand="SELECT * FROM [tb_TaoTi] WHERE ([LessonID] = @LessonID)">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="txtid" Name="LessonID" PropertyName="Text" Type="Int64" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</form>
</body>
</html>

